﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<Student>" %>
<%@ Import Namespace="ViewRes" %>

<%
    using (Html.BeginRouteForm("Default", new {controller = "Students", action = "Add"}))
    {%>
    <span>
        <%:Html.DropDownList("QualificationLevelId", (IEnumerable<SelectListItem>) ViewData["Levels"],
                                            "-", new {onchange = "loadGroups(this.id,'StudentsGroupId')"})%>
    </span>   
    <span>
        <select id="StudentsGroupId" name="StudentsGroupId">
            <option class="disabled"><%:AdministratorsStrings.ChooseLevel%></option>
        </select>
    </span>
        <span>
            <%
        Html.RenderPartial("~/Views/Administrators/Users/UserAddControl.ascx", Model);%>            
        </span>
    <div style="float: right">
        <input type="submit" value="OK" />
    </div>
<%
    }%>